function BigDecimal(Int, decimal) {
    this.int = BigInt(Int);
    this.decimal = BigInt(decimal);
    this.tostring = function() {

            let str = this.int + '.' + this.decimal;
            return str;
        }
        // this.toString(this.int, this.decimal);
}

let x = BigInt('3');
let y = BigInt('141592653589793238462643383279502884197169399');
let pi = new BigDecimal(x, y);
console.log(pi.tostring());


let m = BigInt('12345789012345678901234567890');
let n = BigInt('12345');
let num = new BigDecimal(m, n);
console.log(num.tostring());